/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.stv;

import java.net.DatagramPacket;
import java.util.concurrent.LinkedTransferQueue;

/**
 *
 * @author Xide
 */
public class Server {

    public void runServer() {
        LinkedTransferQueue<DatagramPacket> queue = new LinkedTransferQueue<>();
        new ThreadReceiver(queue).start();
        new ThreadSender(queue).start();
    }

    public static void main(String[] args) {
        new Server().runServer();
    }
}
